/*	
 *	Created By: Matthew Hoyes
 *	Date: May 03, 2010
 *
 =========================================================
						- LookUp.h -

 * What LookUp is for:

	- Keep a location to look up:
			- the card value (2,3,4,5,6,7,8,9,10,J,Q,K,A)
			- the card type (clubs, hearts, spades, diamonds)

 =========================================================
 */
#ifndef LOOKUP_H_
#define LOOKUP_H_

#include <iostream>
using namespace std;

enum CardValue
{
	Blank_Value = 0, Ace = 1, Two = 2, Three = 3, Four = 4,
	Five = 5, Six = 6, Seven = 7, Eight = 8, Nine = 9, 
	Ten = 10, Jack = 11, Queen = 12, King = 13
};

enum CardSuit
{
	Blank_Suit = 0, Spades = 1, Clubs = 2, Hearts = 3, Diamonds = 4
};

//L001: Convert Enum int to String
static void Convert_Suit2String (CardSuit const suit)
{
	switch (suit)
	{
	case Blank_Suit:
		cout << "Blank_Suit";
		break;

	case Hearts:
		cout << "Hearts";
		break;
	
	case Diamonds:
		cout << "Diamonds";
		break;
	
	case Spades:
		cout << "Spades";
		break;
	
	case Clubs:
		cout << "Clubs";
		break;
	
	default:
		cout << "Invalid Suit";

	}//SWITCH STATEMENT
}

//L002: Convert Enum int to String
static void Convert_CV_2String (int const cv)
{
	switch (cv)
	{
	case Ace:
		cout << "A";
		break;

	case Two:
		//cout << "Two";
		cout << "2";
		break;
	
	case Three:
		//cout << "Three";
		cout << "3";
		break;
	
	case Four:
		//cout << "Four";
		cout << "4";
		break;
	
	case Five:
		//cout << "Five";
		cout << "5";
		break;
	
	case Six:
		//cout << "Six";
		cout << "6";
		break;
	
	case Seven:
		//cout << "Seven";
		cout << "7";
		break;
	
	case Eight:
		//cout << "Eight";
		cout << "8";
		break;
	
	case Nine:
		//cout << "Nine";
		cout << "9";
		break;
	
	case Ten:
		//cout << "Ten";
		cout << "10";
		break;
	
	case Jack:
		cout << "J";
		break;
	
	case Queen:
		cout << "Q";
		break;
	
	case King:
		cout << "K";
		break;
	
	case Blank_Value:
		cout << "Blank_Value";
		break;
	
	default:
		cout << "Invalid CardValue";
	
	}
}

#endif /* LOOKUP_H_ */
